<?php
// 事件定义文件
return [
    'bind' => [
    ],

    'listen' => [
        'AppInit' => [],
        'HttpRun' => [],
        'HttpEnd' => [],
        'LogLevel' => [],
        'LogWrite' => [],

        // 邀请成功
        'MemberInvited' => [\app\listener\MemberInvited::class],

        // 咨询创建
        'ConsultingCreated' => [\app\listener\ConsultingCreated::class],
        // 咨询结束
        'ConsultingEnded' => [\app\listener\ConsultingEnded::class],
        // 咨询变动（律师预估佣金）
        'ConsultingUpdated' => [\app\listener\ConsultingUpdated::class],
        // 律师加入咨询聊天
        'ConsultingLawyerJoined' => [\app\listener\ConsultingLawyerJoined::class],
        // 用户加入咨询聊天
        'ConsultingMemberJoined' => [\app\listener\ConsultingMemberJoined::class],
        // 咨询消息创建
        'ConsultingMessageCreated' => [\app\listener\ConsultingMessageCreated::class],
        // 用户咨询消息创建
        'ConsultingMemberMessageCreated' => [\app\listener\ConsultingMemberMessageCreated::class],
        // 咨询&问题 绑定
        'ConsultingQuestionBind' => [\app\listener\ConsultingQuestionBind::class],
        // 追问次数不足
        'ConsultingQuestionNumNotEnough' => [\app\listener\ConsultingQuestionNumNotEnough::class],
        // 付费服务生效
        'ConsultingServerStart' => [\app\listener\ConsultingServerStart::class],
        // 免费服务生效
        'FreeConsultingServerStart' => [\app\listener\FreeConsultingServerStart::class],
        // 服务被回收
        'ConsultingServerRefund' => [\app\listener\ConsultingServerRefund::class],
        // 案源库存变动
        'LawCaseNumUpdated' => [\app\listener\LawCaseNumUpdated::class],
        // 文章详情读取
        'KnowledgeRead' => [\app\listener\KnowledgeRead::class],
        // 热门咨询详情读取
        'QuestionRead' => [\app\listener\QuestionRead::class],

        // 随机咨询
        'RandomConsultingCreated' => [\app\listener\RandomConsultingCreated::class],
        //  随机咨询消息创建事件
        'RandomConsultingMessageCreated' => [\app\listener\RandomConsultingMessageCreated::class],

        // 指定律师咨询
        'DesignateConsultingCreated' => [\app\listener\DesignateConsultingCreated::class],
        // 指定律师消息创建事件
        'DesignateConsultingMessageCreated' => [\app\listener\DesignateConsultingMessageCreated::class],


        // 订单创建
        'TradeCreated' => [\app\listener\TradeCreated::class],
        // 订单完成
        'TradeEnded' => [\app\listener\TradeEnded::class],
        // 支付成功
        'PaySuccess' => [\app\listener\PaySuccess::class],
        // 退款成功
        'RefundSuccess' => [\app\listener\RefundSuccess::class],
        // 转账完成
        'TransferComplete' => [\app\listener\TransferComplete::class],
    ],

    'subscribe' => [
    ],
];
